//--------------
			var dogBarkingBuffer = null;
		    var source = null;
			window.AudioContext = window.AudioContext||window.webkitAudioContext;
			var context = new AudioContext();
			//可以播放  使用的是WebAudio API
			function loadDogSound(url,temp){
				//printLog("进来了");
			    var request = new XMLHttpRequest();
			    request.open('GET',url,true);
			    request.responseType= 'arraybuffer';
				//下面就是对音频文件的异步解析
				request.onload = function(){
					context.decodeAudioData(request.response,function(buffer){
				    dogBarkingBuffer = buffer;
				    //context.playbackState = 0.1;
				    playSounde(dogBarkingBuffer,temp);   //播放
				    //printLog("进进进+++"+dogBarkingBuffer.length);
				   },null);
				   
				}
			    request.send();				    
			}
			//开始播放
			function playSounde(buffer,temp){
				source = context.createBufferSource();//创建一个音频源 相当于是装音频的容器
			    if(temp == 2){
			    	source.loop = true;   //重复播放
			    }
			 
			 //   source.playbackRate = 0.1;
			   // source.defaultPlaybackRate = 0.1;
			    source.buffer = buffer;//  告诉音频源 播放哪一段音频
			    source.connect(context.destination);// 连接到输出源		   
			    source.start(0);//开始播放
			    
			    //source.noteOn(2)
			}
			//立刻停止
			function stopSound() {
			    if (source) {
			        source.noteOff(0); //立即停止
			    }
			}
			
			
			//---------------